package dao;

import java.util.List;
import model.Country;
import model.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/20 15:33
 * @description:
 */
public interface CountryMapper {


    List<Country> findAllCountry();


    int deleteByCode(String cname);


    Country findByName(String cname);


    List<Country> searchCountryByName(@Param("value") String name);


    int addCountry(Country country);


    int updateCountry(Country country);

    List<Country> findAllByPage(@Param("arg1") int page, @Param("arg2") int pageSize);
}
